/**
 * @author:albert
 */

package com.bkbw.live.battle.business;

import java.util.LinkedList;

public class GameTimer {
	public static interface Action {
		public void action();
	}
	
	static int timerHandler = 1;
	private static class TimerSlot
	{
		protected Action action;
		protected int handler;
		static int timerHandler = 1;
		
		TimerSlot(Action action)
		{
			this.handler = timerHandler++;
			this.action = action;
		}
		
		void update(float dt)
		{
			
		}
	}
	
	LinkedList<TimerSlot> list = new LinkedList<GameTimer.TimerSlot>();
	
	public GameTimer()
	{
		
	}
	
	public int scheduleTimer(float sec, Action action) 
	{
		TimerSlot slot = new TimerSlot(action);
		return 0;
	}
	
	public void update(float dt)
	{
		
	}
}
